package com.humble.vichatbackend.controller;

import com.humble.vichatbackend.service.ChatService;
import com.humble.vichatbackend.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    private ChatService chatService;
    @Autowired
    SearchService searchService;

    @GetMapping
    public String test() {
        System.out.println("对象在这里：：：：：：："+chatService);
        return chatService.toString();
    }
}
